package com.danieltoms.gcSync.addressbook.widgets;

import net.rim.device.api.ui.ContextMenu;
import net.rim.device.api.ui.component.EmailAddressEditField;

import com.danieltoms.gcSync.google.GoogleTypedField;

public class MoveableEmailAddressEditField extends EmailAddressEditField implements MoveableEditFieldType
{
	MoveableEditFieldMenu _menu = null;

	public MoveableEmailAddressEditField(GoogleTypedField f, int emailStart)
	{
		super("", f.getValue());

		_menu = new MoveableEditFieldMenu(this, emailStart);

	}

	protected void makeContextMenu(ContextMenu contextMenu)
	{
		contextMenu = _menu.makeContextMenu(contextMenu);
		super.makeContextMenu(contextMenu);
	}

	public int getType()
    {
	    return MoveableEditFieldType.EMAIL;
    }

}
